<template>
  <div class="my-header">
    <h1>个人中心</h1>
    <div class="my-setup-logo">
      <img :src="require('../../../images/my/setting.png')" />
    </div>
    <div class="my-id-info">
      <div>
        <van-image
          round
          width="60"
          height="60"
          :src="require('../../../images/logo/logo_my.jpg')"
        />
        <div class="id-info-tips">去实名验证</div>
      </div>
      <div class="my-phone">
        <p>187*****636</p>
        <div class="my-member">会员值144</div>
      </div>
    </div>
    <div class="my-money">
      <div class="my-money-item">
        <p>1</p>
        <p>优惠券</p>
      </div>
      <div class="my-money-item">
        <p>0</p>
        <p>领云钻</p>
      </div>
      <div class="my-money-item">
        <p>12</p>
        <p>历史</p>
      </div>
      <div class="my-money-item">
        <p>1</p>
        <p>关注</p>
      </div>
    </div>
    <div class="my-coupon">
      <router-link to="#"
        >[免费]您有一张运费券待领取
        <i>立即领取</i>
        <i class="icon iconfont">&#xe626;</i>
      </router-link>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {}
  },
}
</script>
<style lang="less" scoped>
@import '../../../style/mixin';
.my-header {
  font-size: 0.426667rem;
  color: #333;
  font-weight: bold;
  // overflow: hidden;
  background-color: #ffdb47;
  position: relative;
  height: 8.789333rem;
  > h1 {
    text-align: center;
    padding-top: 0.426667rem;
  }
  .my-setup-logo {
    position: absolute;
    right: 0.426667rem;
    top: 0.426667rem;
    > img {
      width: 0.896rem;
      height: 0.896rem;
    }
  }
  .my-id-info {
    height: 2.56rem;
    display: flex;
    position: relative;
    width: 14.208rem;
    margin: 0 auto;
    margin-top: 0.853333rem;
    > div {
      &:nth-child(1) {
        width: 2.56rem;
      }
    }
    .id-info-tips {
      color: #333;
      position: absolute;
      left: -0.128rem;
      bottom: 0;
      background-color: rgba(255, 255, 255, 0.8);
      padding: 0 0.170667rem;
      border-radius: 0.341333rem;
      font-weight: normal;
    }
    .my-phone {
      font-size: 0.597333rem;
      margin-left: 0.853333rem;
      .my-member {
        color: #fff;
        font-size: 0.512rem;
        background-color: rgba(225, 187, 35, 0.8);
        text-align: center;
        border-radius: 0.341333rem;
        line-height: 0.512rem;
        font-weight: normal;
      }
    }
  }
  .my-money {
    display: flex;
    margin-top: 0.64rem;
    font-size: 0.554667rem;
    .my-money-item {
      width: 25%;
      > p {
        text-align: center;
        margin-bottom: 0.426667rem;
        &:nth-child(2) {
          font-weight: normal;
        }
      }
    }
  }
  .my-coupon {
    background-color: #fff;
    position: absolute;
    height: 1.92rem;
    width: 14.08rem;
    left: 50%;
    bottom: -0.853333rem;
    transform: translateX(-50%);
    z-index: 999;
    border-radius: 0.341333rem;
    overflow: hidden;
    line-height: 1.92rem;
    font-size: 0.512rem;
    > a {
      padding-left: 0.853333rem;
      > i {
        &:nth-child(1) {
          padding-left: 1.706667rem;
          font-weight: normal;
        }
        &:nth-child(2) {
          color: #999;
          margin-left: 0.853333rem;
          position: relative;
          top: 0.085333rem;
        }
      }
    }
  }
}
</style>
